Integrand size = 35, antiderivative size = 228 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {4 a^3 (292 A+345 B) \sin (c+d x)}{315 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 a^3 (292 A+345 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^3 (124 A+135 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (4 A+3 B) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d} \]
[Out]
Time = 0.90 (sec) , antiderivative size = 228, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3034, 4102, 4100, 3890, 3889} \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {2 a^3 (124 A+135 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{315 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^3 (292 A+345 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{315 d \sqrt {a \sec (c+d x)+a}}+\frac {4 a^3 (292 A+345 B) \sin (c+d x)}{315 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 (4 A+3 B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}{21 d}+\frac {2 a A \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{9 d} \]
[In]
[Out]
Rule 3034
Rule 3889
Rule 3890
Rule 4100
Rule 4102
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x))}{\sec ^{\frac {9}{2}}(c+d x)} \, dx \\ & = \frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d}+\frac {1}{9} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{3/2} \left (\frac {3}{2} a (4 A+3 B)+\frac {1}{2} a (4 A+9 B) \sec (c+d x)\right )}{\sec ^{\frac {7}{2}}(c+d x)} \, dx \\ & = \frac {2 a^2 (4 A+3 B) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d}+\frac {1}{63} \left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (124 A+135 B)+\frac {1}{4} a^2 (76 A+99 B) \sec (c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx \\ & = \frac {2 a^3 (124 A+135 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (4 A+3 B) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d}+\frac {1}{105} \left (a^2 (292 A+345 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sec ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 a^3 (292 A+345 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^3 (124 A+135 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (4 A+3 B) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d}+\frac {1}{315} \left (2 a^2 (292 A+345 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {4 a^3 (292 A+345 B) \sin (c+d x)}{315 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 a^3 (292 A+345 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^3 (124 A+135 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{315 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (4 A+3 B) \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a A \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{9 d} \\ \end{align*}
Time = 0.57 (sec) , antiderivative size = 116, normalized size of antiderivative = 0.51 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {2 a^2 \sqrt {\cos (c+d x)} \left (584 A+690 B+(292 A+345 B) \cos (c+d x)+3 (73 A+60 B) \cos ^2(c+d x)+5 (26 A+9 B) \cos ^3(c+d x)+35 A \cos ^4(c+d x)\right ) \sqrt {a (1+\sec (c+d x))} \sin (c+d x)}{315 d (1+\cos (c+d x))} \]
[In]
[Out]
Time = 3.15 (sec) , antiderivative size = 119, normalized size of antiderivative = 0.52
\[-\frac {2 a^{2} \left (\left (35 \cos \left (d x +c \right )^{4}+130 \cos \left (d x +c \right )^{3}+219 \cos \left (d x +c \right )^{2}+292 \cos \left (d x +c \right )+584\right ) A +\left (45 \cos \left (d x +c \right )^{3}+180 \cos \left (d x +c \right )^{2}+345 \cos \left (d x +c \right )+690\right ) B \right ) \sqrt {\cos \left (d x +c \right )}\, \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}{315 d}\]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 133, normalized size of antiderivative = 0.58 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\frac {2 \, {\left (35 \, A a^{2} \cos \left (d x + c\right )^{4} + 5 \, {\left (26 \, A + 9 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + 3 \, {\left (73 \, A + 60 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + {\left (292 \, A + 345 \, B\right )} a^{2} \cos \left (d x + c\right ) + 2 \, {\left (292 \, A + 345 \, B\right )} a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{315 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
[In]
[Out]
Timed out. \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 596 vs. \(2 (198) = 396\).
Time = 0.49 (sec) , antiderivative size = 596, normalized size of antiderivative = 2.61 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{\frac {9}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx=\int {\cos \left (c+d\,x\right )}^{9/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \]
[In]
[Out]